<?
/**
 * 新用户注册
 * 
 * @copyright Copyright (c) 2008 sdmblog (http://www.sdmblog.cn)
 * @author sdomain(sdomain@live.cn)
 * @version reg.php Sun May 18 14:09:00 CST 2008 php $
 */
include_once('./include/common.inc.php');
if ($_GET['act']=='agree') {
	require_once ("./xajax/inc/xajax.inc.php");
	$xajax = new xajax('/'.$virdir."class/user.class.php");
	$xajax->registerFunction("userRegSave");
	$ajaxscript=$xajax->getJavascript('/'.$virdir.'./xajax/inc/');
	$smarty->assign('ajaxscript',$ajaxscript);
	$smarty->display('reg-2.tpl');
}else {
	$smarty->assign('regagree',GP('regagree'));
	$smarty->display('reg-1.tpl');
}
?>